package com.bourne.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @PROJECT_NAME: xdclass-1024-shop
 * @DATE: 2021/3/30 20:06
 */
@Data
public class UserLoginRequest {

    @NotBlank(message = "邮箱不能为空")
    @JsonProperty("username")
    private String phone;

    @NotBlank(message = "密码不能为空")
    @JsonProperty("password")
    private String pwd;

    private String id;

}
